// pages/details_private_education/details_private_education.js
var App = getApp();
Page({

    /**
     * 页面的初始数据
     */
    data: {
        member_id: '',
        item_id: '',
        list:[],
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function (options) {
        var This = this;
        This.setData({
            member_id: options.member_id,
            item_id: options.item_id,
        })
        This.loading();

    },
    loading:function(){
        var This = this;
        App._get('coach/Maintain/get_private_member_info_detail', {
            // signature: str,
            openid: wx.getStorageSync('openid'),
            phone: wx.getStorageSync('phone'),
            store_id: wx.getStorageSync('store_id'),
            member_id: This.data.member_id,
            item_id: This.data.item_id
        }, function (res) {
            console.log(res)
            if (res.status == 1) {
               This.setData({
                   list: res.list
               })
            }
        })
    },
    // 查看总结的跳转
    see_allclass:function(e){
        var This = this;
        wx.navigateTo({
            url: '/pages/determining_curriculum_planning/determining_curriculum_planning?b_id=' + e.currentTarget.dataset.id + '&see_details=' + 1 + '&member_id=' + This.data.member_id + '&item_id=' + This.data.item_id,
        })
    },
    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function () {

    },

    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function () {

    },

    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function () {

    },

    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function () {

    },

    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function () {

    },

    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function () {

    },

    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function () {

    }
})